﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MbUnit.Framework;
using System.Collections;

namespace Frost.Tests.TestFactorySpecs {
    
    [TestFixture]
    public class when_constructing_tests {
        
        [Test]
        public void should_use_only_file_name_for_test_name() {
            var test = TestFactory.ConstructTestFromFile(@"..\..\Test Folders\FIT\FitTest1.html");
            test.Name.ShouldBe("FitTest1.html");
        }        

        [Test]
        public void should_make_htm_files_into_fit_tests() {
            var test = TestFactory.ConstructTestFromFile(@"..\..\Test Folders\FIT\FitTest1.html");
            test.ShouldBeTypeOf<FitTest>();
        }
    }
}
